package com.openbravo.pos.printer.escpos;

import com.openbravo.pos.printer.DeviceDisplayBase;
import com.openbravo.pos.printer.DeviceTicket;

public class DeviceDisplaySurePOS extends DeviceDisplaySerial
{
  private UnicodeTranslator trans = new UnicodeTranslatorSurePOS();

  public DeviceDisplaySurePOS(PrinterWritter paramPrinterWritter)
  {
    init(paramPrinterWritter);
  }

  public void initVisor()
  {
    this.display.write(new byte[] { 0, 1 });
    this.display.write(new byte[] { 2 });
    this.display.write(this.trans.getCodeTable());
    this.display.write(new byte[] { 17 });
    this.display.write(new byte[] { 20 });
    this.display.write(new byte[] { 16, 0 });
    this.display.flush();
  }

  public void repaintLines()
  {
    this.display.write(new byte[] { 16, 0 });
    this.display.write(this.trans.transString(DeviceTicket.alignLeft(this.m_displaylines.getLine1(), 20)));
    this.display.write(new byte[] { 16, 20 });
    this.display.write(this.trans.transString(DeviceTicket.alignLeft(this.m_displaylines.getLine2(), 20)));
    this.display.flush();
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.printer.escpos.DeviceDisplaySurePOS
 * JD-Core Version:    0.6.0
 */